﻿using UnityEngine;
using System.Collections;

public class Computer : InteractiveObject {

	public Transform WhatToHack;

	// Use this for initialization
	void Start () {

	}
	
	// Update is called once per frame
	void Update () {
	
	}

	public override ArrayList GetActions() {
		ArrayList baseActions = base.GetActions();

		Hack hackAtion = (Hack)this.gameObject.AddComponent(typeof(Hack));
		baseActions.Add(hackAtion);
		if (WhatToHack != null) {
			hackAtion.SetWhatToHack(WhatToHack);
		}

		return baseActions;
	}

}
